﻿using System.ComponentModel.DataAnnotations;

namespace BlazorCRUD.App.Models;

public class UpdateProductModel
{
    [Required]
    [MinLength(5)]
    [MaxLength(30)]
    public string Name { get; set; }

    [MaxLength(200)]
    public string? Description { get; set; }

    [Range(1, 99)]
    public int Quantity { get; set; }

    [Range(0.1, 999.0)]
    public decimal Price { get; set; }
}
